package com.zjdiepu.www.model.base.response;

import java.io.Serializable;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 菜单表<br/>
 * @author xiongxiaotun<br/>
 * @time 2017年04月05日 15时24分<br/>
 * @since 1.0<br/>
 */
public class Nemu implements Serializable {
	
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	 */
	@JSONField(name = "replaceId")
	private String id;
	
	/**
	 * 父菜单ID
	 */
	private String parentId;
	
	/**
	 * 权限编码
	 */
	private String powerCode;
	
	/**
	 * 权限名称
	 */
	private String name;
	
	/**
	 * 菜单(1：菜单  2：不是)
	 */
	private Integer menuStatus;
	
	/**
	 * 快捷方式（1：是  2：不是）
	 */
	private Integer quick;
	
	/**
	 * 连接
	 */
	private String href;
	
	/**
	 * 图标
	 */
	private String icon;
	
	/**
	 * 子菜单
	 */
	private List<Nemu> children;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getPowerCode() {
		return powerCode;
	}

	public void setPowerCode(String powerCode) {
		this.powerCode = powerCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getMenuStatus() {
		return menuStatus;
	}

	public Integer getQuick() {
		return quick;
	}

	public void setQuick(Integer quick) {
		this.quick = quick;
	}

	public void setMenuStatus(Integer menuStatus) {
		this.menuStatus = menuStatus;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public List<Nemu> getChildren() {
		return children;
	}

	public void setChildren(List<Nemu> children) {
		this.children = children;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Nemu other = (Nemu) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
}